Skip to content

Add "Show Help at Cursor" to the editor context menu#14860

Merged
juliasilge merged 1 commit into
mainfrom
feat/show-help-context-menu
Jul 15, 2026
Merged

Add "Show Help at Cursor" to the editor context menu#14860
juliasilge merged 1 commit into
mainfrom
feat/show-help-context-menu

Conversation

@juliasilge

Copy link
Copy Markdown
Member

Fixes #14570

This PR adds "Show Help at Cursor" to the editor right-click context menu. The command already existed with keybindings (F1, Cmd+K Cmd+H) and a command palette entry; this PR just surfaces it in the context menu where users might look for it, as requested in the issue.

This is purely declarative metadata. A menu entry added to the existing ShowHelpAtCursor action registration. There is no new runtime logic, and the action's run() method is unchanged.

The when clause reuses the POSITRON_RUNTIME_LANGUAGE_IDS context key I added in #13098 (for "View Data Frame at Cursor"), so the item shows on editors whose language has a registered Positron runtime, plus .qmd explicitly (the embedded language is resolved at the cursor). The entry is ordered to sit just below "Go to References" and just above "View Data Frame at Cursor" in the navigation group:

Screenshot_2026-07-14_at_1_21_33 PM

Release Notes

New Features

Bug Fixes

  • N/A

QA Notes

@:help @:editor @:quarto

There are no automated tests here because the change is declarative menu registration with no new logic to exercise. We can verify manually during review:

  1. In an R file, right-click on a function name (e.g. library). Confirm "Show Help at Cursor" appears in the context menu, directly below "Go to References" and above "View Data Frame at Cursor". Choosing it opens the help topic.
  2. Repeat in a Python file (e.g. right-click on print).
  3. In a .qmd file with an R chunk or a Python chunk, place the cursor inside each chunk on a symbol and confirm the item appears and opens help for the correct language (this exercises the embedded-language path).
  4. In a plaintext or Markdown file with no runtime language, confirm the item does NOT appear.

@github-actions

Copy link
Copy Markdown

E2E Tests 🚀
This PR will run tests tagged with: @:critical @:help @:editor @:quarto

Why these tags?
Tag Source
@:critical Always runs (required)
@:help PR description
@:editor PR description
@:quarto PR description

More on automatic tags from changed files.

readme  valid tags

@juliasilge juliasilge marked this pull request as ready for review July 14, 2026 20:42
@juliasilge juliasilge requested review from austin3dickey and jmcphers and removed request for jmcphers July 14, 2026 20:42

@austin3dickey austin3dickey left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works well for me, thanks!

@juliasilge juliasilge merged commit 830656e into main Jul 15, 2026
26 checks passed
@juliasilge juliasilge deleted the feat/show-help-context-menu branch July 15, 2026 02:44
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 15, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add "Help: Show Help at Cursor" to right click context menu

2 participants